cmake_minimum_required(VERSION 3.5)

project(LCX VERSION 0.1 LANGUAGES CXX)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_subdirectory(thirdParty/QCloudMusicApi)
find_package(Qt6 REQUIRED COMPONENTS Widgets Network AxContainer)
add_subdirectory(thirdParty/musicApi)
add_subdirectory(thirdParty/QWord)
add_subdirectory(src)

if(QT_VERSION_MAJOR EQUAL 6)
    qt_finalize_executable(LCX)
endif()
